<?
   require_once('config.php');
   $alb_id = getValue('alb_id','str','POST');
   $image = getValue('link','str','POST','');
   $arr_image = explode(',',$image);
   if(count($arr_image) > 0){
      $value_insert = "INSERT INTO xinh_images(link,alb_id,date) VALUES";
      foreach($arr_image as $value){
         $value_insert .= "('" . $value . "'," . $alb_id . "," . time() . "),";   
      }
      $value_insert = substr($value_insert,0,-1);
      echo $value_insert;
      $db_exe = new db_execute($value_insert);
      echo $db_exe->rows_affected;
      unset($db_exe);
   }
?>